package top.huhuiyu.springboot2.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class NewsQuery {
  private String title;
  private String content;
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private Date startTime;
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private Date endTime;
  private Integer order;

  @Override
  public String toString() {
    return "NewsQuery{" + "title='" + title + '\'' + ", content='" + content + '\'' + ", startTime=" + startTime + ", endTime=" + endTime + ", order=" + order + '}';
  }

  public String getTitle() {
    return title;
  }

  public void setTitle(String title) {
    this.title = title;
  }

  public String getContent() {
    return content;
  }

  public void setContent(String content) {
    this.content = content;
  }

  public Date getStartTime() {
    return startTime;
  }

  public void setStartTime(Date startTime) {
    this.startTime = startTime;
  }

  public Date getEndTime() {
    return endTime;
  }

  public void setEndTime(Date endTime) {
    this.endTime = endTime;
  }

  public Integer getOrder() {
    return order;
  }

  public void setOrder(Integer order) {
    this.order = order;
  }
}
